"""
配置文件 - 存储应用程序的配置信息和常量
"""

# 请求头配置
HEADERS = {
    "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
    "Accept-Language": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6",
    "Cache-Control": "max-age=0",
    "Connection": "keep-alive",
    "Sec-Fetch-Dest": "document",
    "Sec-Fetch-Mode": "navigate",
    "Sec-Fetch-Site": "same-origin",
    "Sec-Fetch-User": "?1",
    "Upgrade-Insecure-Requests": "1",
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36 Edg/137.0.0.0",
    "sec-ch-ua": "\"Microsoft Edge\";v=\"137\", \"Chromium\";v=\"137\", \"Not/A)Brand\";v=\"24\"",
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-platform": "\"Windows\"",
    "Referer": "https://www.douyin.com/"
}

# 抖音图片专用请求头
IMG_HEADERS = {
    "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
    "accept-language": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6",
    "cache-control": "max-age=0",
    "priority": "u=0, i",
    "sec-ch-ua": "\"Microsoft Edge\";v=\"137\", \"Chromium\";v=\"137\", \"Not/A)Brand\";v=\"24\"",
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-platform": "\"Windows\"",
    "sec-fetch-dest": "document",
    "sec-fetch-mode": "navigate",
    "sec-fetch-site": "same-origin",
    "sec-fetch-user": "?1",
    "upgrade-insecure-requests": "1",
    "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36 Edg/137.0.0.0"
}

# 抖音图片专用Cookie（从原版复制的完整配置）
IMG_COOKIES = {
    "douyin.com": "",
    "xg_device_score": "7.670463056025158",
    "__security_mc_1_s_sdk_crypt_sdk": "5fcb5a34-49db-b192",
    "__security_mc_1_s_sdk_cert_key": "f9ee28b1-4c6b-9928",
    "passport_csrf_token": "c7de25a556948f03fa12244cab61ed1b",
    "passport_csrf_token_default": "c7de25a556948f03fa12244cab61ed1b",
    "SEARCH_RESULT_LIST_TYPE": "%22single%22",
    "fpk1": "U2FsdGVkX181hxPFmVIa9a3Id0wy/9pMmRPGyczB802cM1WQk1e+X7pHV+LFVyjtbnhQiivr0fQxzVgtaSm+hg==",
    "fpk2": "8cf04e281318af421dc03fc482e00bfd",
    "bd_ticket_guard_client_web_domain": "2",
    "passport_mfa_token": "CjfDBw1EyVqUtz1bzgRuDr5SYBslYuVOEZ6lB8z46R%2BBiGKOUci4z2ZNA1%2BWr6ZVlNabY7Iz0D7UGkoKPAAAAAAAAAAAAABPIArbC8qVRNkV4aOCVtZg1ElcnEywMW%2BxhHC0K8nQ%2B%2FR1kcwWCYg9QTkBDObqF5G0%2BRCqrPQNGPax0WwgAiIBA%2Bzt03M%3D",
    "d_ticket": "1a2e3ca56022600df644cef1682ae7fc0b5ca",
    "session_tlb_tag": "sttt%7C1%7CRLMPQAciq_Q9JlHuKUvC4P________-pdqOF2NYXkmyMtSp7bqEphj_E-nCO_TE5JxC_3Wrv0Vs%3D",
    "passport_assist_user": "CkGLkGVzdSnXBt37qmWn33DTUNk4VSFq9Qz60JNM4nqYBBPLSGLQZrncSQlAXV_HuGvnv4MsYaJfAAoGqnbi_VJLFRpKCjwAAAAAAAAAAAAATyCEVxeO1AZ63s0RQfRhUQ4lgFDLgm-tI31BvP_TGJxjZD6jTPo18PsJhBSDIPrKAzMQh6z0DRiJr9ZUIAEiAQMssX8v",
    "n_mh": "2ffm9Wl-31kM3WjNlYxkcXSyExLEajmhJ2RsC0Er8ks",
    "sid_guard": "44b30f400722abf43d2651ee294bc2e0%7C1750163863%7C5184000%7CSat%2C+16-Aug-2025+12%3A37%3A43+GMT",
    "uid_tt": "8107ff32cdbf1bc75f62ff63c0df2a2e",
    "uid_tt_ss": "8107ff32cdbf1bc75f62ff63c0df2a2e",
    "sid_tt": "44b30f400722abf43d2651ee294bc2e0",
    "sessionid": "44b30f400722abf43d2651ee294bc2e0",
    "sessionid_ss": "44b30f400722abf43d2651ee294bc2e0",
    "is_staff_user": "false",
    "sid_ucp_v1": "1.0.0-KGM0NDYyMWZlMzM2NGExOTZjOTBjZGQ2MGM3MWM0MzcwYWQyNTFjMDUKIQjzhsG-6PS6AhCXw8XCBhjvMSAMMMP7oesFOAdA9AdIBBoCaGwiIDQ0YjMwZjQwMDcyMmFiZjQzZDI2NTFlZTI5NGJjMmUw",
    "ssid_ucp_v1": "1.0.0-KGM0NDYyMWZlMzM2NGExOTZjOTBjZGQ2MGM3MWM0MzcwYWQyNTFjMDUKIQjzhsG-6PS6AhCXw8XCBhjvMSAMMMP7oesFOAdA9AdIBBoCaGwiIDQ0YjMwZjQwMDcyMmFiZjQzZDI2NTFlZTI5NGJjMmUw",
    "login_time": "1750163863351",
    "SelfTabRedDotControl": "%5B%5D",
    "_bd_ticket_crypt_cookie": "00a16e2841eef25c7c4fb362d71146f0",
    "__security_mc_1_s_sdk_sign_data_key_web_protect": "861ed314-4e88-ae48",
    "__security_server_data_status": "1",
    "enter_pc_once": "1",
    "UIFID": "8f584679f13361d7674396b25a46f1c75dd7736730eef2bca7f1b3cfea8b216dfe3623461f5696cc05ad9214f1605d39453d8f711c3aa8802104aa3534553a8867b507e915ae83dd1a80e305bb4b4bab82c9c88aea66b9f4d59964886a3499ec4c0d01ac592182477f23420acb5cadfd485e32118dcef76fcaadb0c7688567866c81d66e7c3477ec61cf56d21b9c52eca662dee9cd46888f80837cd69383a85b",
    "dy_swidth": "1920",
    "dy_sheight": "1080",
    "s_v_web_id": "verify_mc1hf3og_DaTT3MHU_7b1k_4VNj_A3IP_44XArvjnSwmA",
    "strategyABtestKey": "%221750222722.473%22",
    "ttwid": "1%7CIoR2OS51YsscK0PAiR0cnmzhhICFlg1LqvAQgUtfFXc%7C1750222721%7C8a4a96e32edd18e69f20f3b7128f6c080109b577fad5d72e7b52316729446872",
    "device_web_cpu_core": "16",
    "device_web_memory_size": "8",
    "architecture": "amd64",
    "__ac_nonce": "06852ab7800c4a823a8d6",
    "__ac_signature": "_02B4Z6wo00f01gxye5QAAIDC51oxXMHkONoMUn8AAOtcc8",
    "stream_recommend_feed_params": "%22%7B%5C%22cookie_enabled%5C%22%3Atrue%2C%5C%22screen_width%5C%22%3A1920%2C%5C%22screen_height%5C%22%3A1080%2C%5C%22browser_online%5C%22%3Atrue%2C%5C%22cpu_core_num%5C%22%3A16%2C%5C%22device_memory%5C%22%3A8%2C%5C%22downlink%5C%22%3A10%2C%5C%22effective_type%5C%22%3A%5C%224g%5C%22%2C%5C%22round_trip_time%5C%22%3A50%7D%22",
    "FOLLOW_LIVE_POINT_INFO": "%22MS4wLjABAAAAB0LuDQ7Pg3-P38Gf4A1HuqXO6WmdyTC6QZS4fNKEAm-IZeBI7l0FDuv1TRfP1BpP%2F1750262400000%2F0%2F0%2F1750249590495%22",
    "FOLLOW_NUMBER_YELLOW_POINT_INFO": "%22MS4wLjABAAAAB0LuDQ7Pg3-P38Gf4A1HuqXO6WmdyTC6QZS4fNKEAm-IZeBI7l0FDuv1TRfP1BpP%2F1750262400000%2F0%2F0%2F1750250191013%22",
    "volume_info": "%7B%22volume%22%3A0.7%2C%22isMute%22%3Afalse%2C%22isUserMute%22%3Afalse%7D",
    "stream_player_status_params": "%22%7B%5C%22is_auto_play%5C%22%3A0%2C%5C%22is_full_screen%5C%22%3A0%2C%5C%22is_full_webscreen%5C%22%3A0%2C%5C%22is_mute%5C%22%3A0%2C%5C%22is_speed%5C%22%3A1%2C%5C%22is_visible%5C%22%3A0%7D%22",
    "home_can_add_dy_2_desktop": "%221%22",
    "bd_ticket_guard_client_data": "eyJiZC10aWNrZXQtZ3VhcmQtdmVyc2lvbiI6MiwiYmQtdGlja2V0LWd1YXJkLWl0ZXJhdGlvbi12ZXJzaW9uIjoxLCJiZC10aWNrZXQtZ3VhcmQtcmVlLXB1YmxpYy1rZXkiOiJCQ0k0NmVBb3dVSWQrVnFDN1BONzBKTnRvMVVxV0ZTN2lNaXRZbnNORHV4anI3eHNPT1lOZllFbk54eTFFODYvT1NIRkREaGN5eW80YjArcmpDcndZS3M9IiwiYmQtdGlja2V0LWd1YXJkLXdlYi12ZXJzaW9uIjoyfQ%3D%3D",
    "publish_badge_show_info": "%220%2C0%2C0%2C1750249654394%22",
    "odin_tt": "1c902a1db80ce0da92f3a4d996d4500ed13906ffd5809e61f03cd77b0b517250df28f271d64b44e4c35b5ff53315e13c178ebf78be256700759004e88a86f6bc",
    "IsDouyinActive": "false",
    "passport_fe_beating_status": "false"
}

# 默认Cookie配置（用于视频下载）
DEFAULT_COOKIES = {
    "douyin.com": "",
    "xg_device_score": "7.90435294117647",
    "device_web_cpu_core": "16",
    "device_web_memory_size": "8",
    "architecture": "amd64",
    "__ac_referer": "https://www.douyin.com/user/MS4wLjABAAAAi1zmR_JjldfmEbQjwT0SbilhWI7m-SixjwyyuAlGbMQ?modal_id=7442555142005591353",
    "bd_ticket_guard_client_web_domain": "2",
    "UIFID_TEMP": "c4683e1a43ffa6bc6852097c712d14b81f04bc9b5ca6d30214b0e66b4e385280b002e023987f6babd98cf8da2b953bc30754cf0a10784ff033855dd287a12ad741bec478e00cde319b1e875c79435850",
    "fpk1": "U2FsdGVkX1+xV7v4W5/d9O5RbCTzYqnckNCmhoPv9hEOINp2qOna9OeId06a1g5zGxIAxAaHBWyVr8vCqk65Aw==",
    "fpk2": "5f4591689f71924dbd1e95e47aec4ed7",
    "UIFID": "c4683e1a43ffa6bc6852097c712d14b81f04bc9b5ca6d30214b0e66b4e38528028c100ada6f87f104fc5b76d49df10d05aa3c8adcb72f55aa6da68c7791d2b9ec5f5383c0edfa4c2ea56a9cdb4633e5b276f7a324c0639cf95c284b80e41a70d44ac9b1866633cba3b3d27585694d31ca00503cc2bb0a80e5688552282884e46bff32fbdc66efb77c290bfee2cfff4c034235c9ddf9557b3b199f89ef1cc962a",
    "hevc_supported": "true",
    "xgplayer_user_id": "171692770520",
    "d_ticket": "53b22f9ef3bd882560853d5eaf74d0913ab1b",
    "passport_assist_user": "CkFfhwiyt8M14lLRAChr0aAeDC0HQwDpWMLWrripiPTyGqHGmJko1ef6IyZHW2_cKSSatBkkRA6nYTyUiCGOKhaOOhpKCjxir6xMUPMAgKQkc42sliDjldo1HdfVugddX6chIBYqGtaWaJdnQsNbxFG2TsnkynwUuMKRpVucRiX3EQwQ7uXeDRiJr9ZUIAEiAQPjXlIs",
    "uid_tt": "1f9f0c8c77bd4da887c833368e94fd9d",
    "uid_tt_ss": "1f9f0c8c77bd4da887c833368e94fd9d",
    "sid_tt": "89a720f26b1179887479290a1b193689",
    "sessionid": "89a720f26b1179887479290a1b193689",
    "sessionid_ss": "89a720f26b1179887479290a1b193689",
    "is_staff_user": "false",
    "SelfTabRedDotControl": "%5B%5D",
    "store-region": "cn-hb",
    "store-region-src": "uid",
    "my_rd": "2",
    "live_use_vvc": "%22false%22",
    "_bd_ticket_crypt_cookie": "e35570b2192fa424c31d4a28fd168664",
    "xgplayer_device_id": "90323790777",
    "SEARCH_RESULT_LIST_TYPE": "%22multi%22",
    "__live_version__": "%221.1.3.1147%22",
    "SearchMultiColumnLandingAbVer": "2",
    "s_v_web_id": "verify_mazgqrz6_QiFFKRTS_Ca7q_4x0z_8vrw_3uKKQS1Ugtln",
    "__security_mc_1_s_sdk_crypt_sdk": "c393b5f1-499c-aae7",
    "__security_mc_1_s_sdk_cert_key": "0c1991f8-4741-a8a2",
    "__security_mc_1_s_sdk_sign_data_key_web_protect": "4c8e3ce2-47ed-ac10",
    "passport_csrf_token": "c9f7aa8b725deedd1454040519ed8a7c",
    "passport_csrf_token_default": "c9f7aa8b725deedd1454040519ed8a7c",
    "session_tlb_tag": "sttt%7C18%7Ciacg8msReYh0eSkKGxk2if_________TaLYkqOL_khTayc1rD1t02iryhiJN0PhJKjOfM77w1BA%3D",
    "sid_guard": "89a720f26b1179887479290a1b193689%7C1748959103%7C5184000%7CSat%2C+02-Aug-2025+13%3A58%3A23+GMT",
    "sid_ucp_v1": "1.0.0-KDkxMjY2Zjc5YjUwMWUxZGM3YTM4NmU5NzYzNWEwMjk0NjQ3NjliODYKGwjzhsG-6PS6AhD__vvBBhjvMSAMOAZA9AdIBBoCbGYiIDg5YTcyMGYyNmIxMTc5ODg3NDc5MjkwYTFiMTkzNjg5",
    "ssid_ucp_v1": "1.0.0-KDkxMjY2Zjc5YjUwMWUxZGM3YTM4NmU5NzYzNWEwMjk0NjQ3NjliODYKGwjzhsG-6PS6AhD__vvBBhjvMSAMOAZA9AdIBBoCbGYiIDg5YTcyMGYyNmIxMTc5ODg3NDc5MjkwYTFiMTkzNjg5",
    "enter_pc_once": "1",
    "dy_swidth": "1920",
    "dy_sheight": "1080",
    "strategyABtestKey": "%221750040892.797%22",
    "biz_trace_id": "c9e3a379",
    "ttwid": "1%7CqFyREPFE4a5j5SI1VCTmfHxoukQX7yWUo793dwb_w3c%7C1750040890%7Cf3233ca6c7fed22674ad10164314a57137371631065398792f99e9e31a34e465",
    "publish_badge_show_info": "%221%2C0%2C0%2C1750041039730%22",
    "FOLLOW_LIVE_POINT_INFO": "%22MS4wLjABAAAAB0LuDQ7Pg3-P38Gf4A1HuqXO6WmdyTC6QZS4fNKEAm-IZeBI7l0FDuv1TRfP1BpP%2F1750089600000%2F0%2F0%2F1750044685058%22",
    "__ac_signature": "_02B4Z6wo00f01YtT12wAAIDBYHudplRmPoWLc9PAAAqccc",
    "stream_recommend_feed_params": "%22%7B%5C%22cookie_enabled%5C%22%3Atrue%2C%5C%22screen_width%5C%22%3A1920%2C%5C%22screen_height%5C%22%3A1080%2C%5C%22browser_online%5C%22%3Atrue%2C%5C%22cpu_core_num%5C%22%3A16%2C%5C%22device_memory%5C%22%3A8%2C%5C%22downlink%5C%22%3A4.85%2C%5C%22effective_type%5C%22%3A%5C%224g%5C%22%2C%5C%22round_trip_time%5C%22%3A100%7D%22",
    "FOLLOW_NUMBER_YELLOW_POINT_INFO": "%22MS4wLjABAAAAB0LuDQ7Pg3-P38Gf4A1HuqXO6WmdyTC6QZS4fNKEAm-IZeBI7l0FDuv1TRfP1BpP%2F1750089600000%2F0%2F1750045963037%2F0%22",
    "bd_ticket_guard_client_data": "eyJiZC10aWNrZXQtZ3VhcmQtdmVyc2lvbiI6MiwiYmQtdGlja2V0LWd1YXJkLWl0ZXJhdGlvbi12ZXJzaW9uIjoxLCJiZC10aWNrZXQtZ3VhcmQtcmVlLXB1YmxpYy1rZXkiOiJCQ0k0NmVBb3dVSWQrVnFDN1BONzBKTnRvMVVxV0ZTN2lNaXRZbnNORHV4anI3eHNPT1lOZllFbk54eTFFODYvT1NIRkREaGN5eW80YjArcmpDcndZS3M9IiwiYmQtdGlja2V0LWd1YXJkLXdlYi12ZXJzaW9uIjoyfQ%3D%3D",
    "home_can_add_dy_2_desktop": "%221%22",
    "odin_tt": "25ae3d4638264ef2acba1aa1f4415e492e66f9e928d6a566ddcf0c15091a22c3411c3b8b475090b3c1a05c00f6634558",
    "volume_info": "%7B%22isUserMute%22%3Afalse%2C%22isMute%22%3Afalse%2C%22volume%22%3A0.25%7D",
    "__ac_nonce": "0684fa89e0018e0d0f573",
    "IsDouyinActive": "false",
    "passport_fe_beating_status": "false"
}

# B站默认Cookie配置
BILIBILI_DEFAULT_COOKIES = {
    "buvid3": "D0EB66FB-D454-9B99-A6E3-C9AC7E7DEFED96375infoc",
    "b_nut": "1755148796",
    "b_lsid": "2D4A6D1010_198A70540D4",
    "bsource": "search_bing",
    "_uuid": "106A5FCF9-A3D10-6D66-15CB-AAD6EB2571010A96138infoc",
    "buvid_fp": "e088a6ce4e5b94065a228b9b048680a8",
    "bmg_af_switch": "1",
    "bmg_src_def_domain": "i2.hdslb.com",
    "enable_web_push": "DISABLE",
    "buvid4": "92FA765A-5923-4989-1AEF-776A2738C91F98993-025081413-i8Cuyo+FARjWbshvpKSEPg%3D%3D",
    "bili_ticket": "eyJhbGciOiJIUzI1NiIsImtpZCI6InMwMyIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3NTU0MDgwMDAsImlhdCI6MTc1NTE0ODc0MCwicGx0IjotMX0.uJWo19waY1LfL2vF7wLxRXc_TPJmKdi3Drg0PxObE-0",
    "bili_ticket_expires": "1755407940",
    "SESSDATA": "5099e85c%2C1770700819%2C01612%2A81CjBdGkuueKMC-HZqfBrnIswu5g6_GkqYiTp2WyDyRnfoD8Wn3p9jZq-5hZnqeMOvxlsSVlYtV1JCdjhiYW01TUw2VEJSQ25FRHJCeUdSSndCdUkzc3J2b1plUjZ0b2hNajNQN1JtamdJdEs1R0RhcHc0YUFhRlRJZmo0TUtfRnVtWVl2N0lQdXR3IIEC",
    "bili_jct": "0b2ba299d96d77a52a493ae108638c8f",
    "DedeUserID": "2018270129",
    "DedeUserID__ckMd5": "0535fbbe66b8f6a9",
    "home_feed_column": "5",
    "browser_resolution": "1872-954",
    "sid": "4m7wzkh3",
    "CURRENT_QUALITY": "0",
    "rpdid": "|(J|~Ylu)k|)0J'u~lluR))l|",
    "theme-tip-show": "SHOWED",
    "bp_t_offset_2018270129": "1100846447777021952",
    "CURRENT_FNVAL": "4048"
}

# B站请求头配置
BILIBILI_HEADERS = {
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36",
    "Referer": "https://www.bilibili.com/"
}

# 应用程序配置
APP_CONFIG = {
    "name": "代飞哥下载器",
    "version": "v2.1 Pro",
    "window_title": "解析器 v2.1",
    "window_size": (1400, 900),
    "sidebar_width": 280,
    "default_download_path": "D:\\douyin_downloads",
    "download_paths": {
        "douyin_video": "D:\\douyin_downloads\\videos",      # 抖音视频
        "douyin_image": "D:\\douyin_downloads\\images",      # 抖音图片
        "kuaishou_video": "D:\\douyin_downloads\\kuaishou",  # 快手视频
        "kuaishou_batch": "D:\\douyin_downloads\\ks_batch",  # 快手批量
        "bilibili_video": "D:\\douyin_downloads\\B_video",   # B站视频
        "weimiquan_image": "D:\\douyin_downloads\\wxPic",    # 微密圈图片
        "tiefenquan_image": "D:\\douyin_downloads\\tiefenquan", # 铁粉圈图片
        "tiefenquan_video": "D:\\douyin_downloads\\tfq_videos", # 铁粉圈视频
    }
}

# 文件扩展名
SUPPORTED_VIDEO_FORMATS = ['.mp4', '.avi', '.mov', '.mkv']
SUPPORTED_IMAGE_FORMATS = ['.jpg', '.jpeg', '.png', '.gif', '.webp']

# 快手专用配置（从原版复制）
KUAISHOU_CONFIG = {
    "headers": {
        "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
        "Accept-Language": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6",
        "Cache-Control": "max-age=0",
        "Connection": "keep-alive",
        "Referer": "https://cn.bing.com/",
        "Sec-Fetch-Dest": "document",
        "Sec-Fetch-Mode": "navigate",
        "Sec-Fetch-Site": "same-origin",
        "Sec-Fetch-User": "?1",
        "Upgrade-Insecure-Requests": "1",
        "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36 Edg/137.0.0.0",
        "sec-ch-ua": "\"Microsoft Edge\";v=\"137\", \"Chromium\";v=\"137\", \"Not/A)Brand\";v=\"24\"",
        "sec-ch-ua-mobile": "?0",
        "sec-ch-ua-platform": "\"Windows\""
    },
    "cookies": {
        "kpf": "PC_WEB",
        "clientid": "3",
        "did": "web_7e19a165b9b4f4dd0a444e251c146710",
        "kpn": "KUAISHOU_VISION",
        "userId": "254593641",
        "kuaishou.server.webday7_st": "ChprdWFpc2hvdS5zZXJ2ZXIud2ViZGF5Ny5zdBKwAdLrZhAe8eP5NdiZugqcQn3J3FlKbTWRIqErDDEQ5H7TR0oW6i43B18QVktFVL8utEpX44FWLs78MMCjp86nOOLt60qhETmkDUVNWoA2ySaceg532U05LScXfR41DLJEQBgI0e6tbsRIhG363KeXNV-CjoH0MQzYkNs-bD7EVC-gHiAKvZQHJ1uXszAwfksVYGgS4p_aW92wn-ZlRxdAgXyZcmMc3k-8PI8KppGbi7uvGhLnL33oyPAVhFFV1o7h2Db3JhgiIDOJkIPqO2cvms2CvIY5ZRlaY2iv1mRGX79ibkp3KAc1KAUwAQ",
        "kuaishou.server.webday7_ph": "b8a7757e577c36c68c732690bee3600771fd"
    },
    "params": {
        "authorId": "3xq9d8xpjrwbzvk",
        "streamSource": "brilliant",
        "hotChannelId": "00",
        "area": "brilliantxxcarefully"
    },
    "download_headers": {
        "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36 Edg/137.0.0.0",
        "Referer": "https://www.kuaishou.com/",
        "Range": "bytes=0-",
        "Accept": "*/*",
        "Accept-Encoding": "identity;q=1, *;q=0",
        "Accept-Language": "zh-CN,zh;q=0.9,en;q=0.8",
        "Connection": "keep-alive"
    }
}

# API相关配置
DOUYIN_API_BASE = "https://www.douyin.com"
KUAISHOU_API_BASE = "https://www.kuaishou.com"

# 下载配置
DOWNLOAD_CONFIG = {
    "chunk_size": 1024 * 1024,  # 1MB
    "timeout": 30,
    "max_retries": 3,
    "retry_delay": 1,
}